#ifndef STUDY_WIDGET_H
#define STUDY_WIDGET_H

#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPaintEvent>
#include <QStyleOption>
#include <QPushButton>
#include <QPalette>
#include <QPainter>
#include <QDebug>
#include "study_widget_top.h"
#include "study_widget_middle.h"
#include "study_widget_bottom.h"

class study_widget : public QWidget
{
    Q_OBJECT

public:
    explicit study_widget(QWidget *parent = 0);
    void paintEvent(QPaintEvent *event);
    study_widget_middle *m_middle_widget;
    study_widget_bottom *m_bottom_widget;
    study_widget_top *m_top_widget;
private:
    QVBoxLayout *main_box;
    QPushButton* pButtonScaleBig;
    QPushButton* pButtonScaleSmall;
    QPushButton* pButtonReset;
    QHBoxLayout* vButtonLayout;
    QVBoxLayout* hBottomLayout;
    QVBoxLayout* vMainLayout;
signals:

public slots:
    void pButtonResetClicked(){
        m_bottom_widget->resetTimeLine();
    }
    void pButtonScaleSmallClicked(){
        m_bottom_widget->setScaleSmall();
    }
    void pButtonScaleBigClicked(){
        m_bottom_widget->setScaleBig();
    }
};

#endif // STUDY_WIDGET_H
